﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Configuration;
using System.Web.UI;
using System.Web.UI.WebControls;


namespace CRMWeb.Pages.AM
{
    public partial class EzidebitTestPage : CRMWeb.Utilities.BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            string digitalKey = WebConfigurationManager.AppSettings["EziDebitDigitalKey"].ToString();
            CRMAdapter.PayByEzidebit.AddCustomers(digitalKey, "", "", txtLastName.Text, "", "", "", "", "", "", "", "", txtConStrtDate.Text, txtSmsPayRem.Text, txtSmsFailRem.Text, txtSmsExpCard.Text, "");
            ClearAll();
           
        }

        //Method to clear all fields
        public void ClearAll()
        {
            
            txtLastName.Text = "";
            txtConStrtDate.Text = "";
            txtSmsPayRem.Text = "";
            txtSmsFailRem.Text = "";
            txtSmsExpCard.Text = "";
        }
    }
}